package com.carkeeper.car.feign;

import com.carkeeper.car.Itcast;
import com.carkeeper.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("carkeeper-car")
@RequestMapping("/itcast")
public interface ItcastFeign {

    /**
     * 根据主键查询
     * @param id 主键
     * @return 操作结果
     */
    @GetMapping("/{id}")
    Result<Itcast> findById(@PathVariable Integer id);

}
